/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"88AB8FEC-2CC2-4712-A4EE-6A66A05A83F5",variableType:4}
 */
var fAnulaBorra = 0;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"47CE2162-B811-4CA0-A781-B13149E71A62"}
 */
function cancelar(event) {
	var $win = application.getWindow('recibos')
	$win.hide()
	$win.destroy()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"AE451122-BA0F-46F1-8B08-28F719E182DA"}
 */
function borrar(event) {
	var $resp = globals.DIALOGS.showQuestionDialog('Confirma','¿Seguro que desea borrar el recibo?','Si','No')
	if ($resp == 'Si')
	{
		globals.gBajaRecibo()
		var $win = application.getWindow('recibos')
		$win.hide()
		$win.destroy()
	}
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"FBDB3C6F-7B22-4F5F-9C14-20F524CB2DCF"}
 */
function anular(event) {
	fAnulaBorra = 1
	var $resp = globals.DIALOGS.showQuestionDialog('Confirma','¿Seguro que desea borrar el recibo?','Si','No')
	if ($resp == 'Si')
	{
		globals.gBajaRecibo()
		var $win = application.getWindow('recibos')
		$win.hide()
		$win.destroy()
	}
}
